<?php
class Teacher{
	function Teacher(){
		include("teacher.methodTable.php");
		include("database.php");
	}
	function getTeacher($teacherId){
		if (isset($teacherId)) $WHERE = " WHERE userId={$teacherId} AND profession != '' "; else $WHERE = " WHERE profession != '' ";
		$sql = "SELECT * FROM user $WHERE";
		$query = mysql_query($sql);
		return $query;
	}
}
?>